package com.netty4.http.xml;

public class OrderFactory {

    public static  Order create(long orderNumber){
        Order o = new Order();
        o.setOrderNumber(orderNumber);
        o.setTotal(1230f);
        Customer customer = new Customer();
        customer.setFirstName("李");
        customer.setLastName("博");
        customer.setCustomerNumber(orderNumber);


        o.setCustomer(customer);
        o.setShipping(Shipping.DOMESTIC_EXPRESS);
        Address address = new Address();
        address.setStree1("北京市");
        address.setCity("北京");
        address.setPostCode("1001");
        address.setState("北京市");
        o.setBillTo(address);
        o.setShipTo(address);
        return  o;

    }
}

